import request from '@/utils/request'

// 查询捐款列表
export function listDonations(query) {
  return request({
    url: '/system/donations/list',
    method: 'get',
    params: query
  })
}

// 查询捐款详细
export function getDonations(id) {
  return request({
    url: '/system/donations/' + id,
    method: 'get'
  })
}

// 新增捐款
export function addDonations(data) {
  return request({
    url: '/system/donations',
    method: 'post',
    data: data
  })
}

// 修改捐款
export function updateDonations(data) {
  return request({
    url: '/system/donations',
    method: 'put',
    data: data
  })
}

// 删除捐款
export function delDonations(id) {
  return request({
    url: '/system/donations/' + id,
    method: 'delete'
  })
}
